package com.test.constants;



/**
 * Created by huy on 2017/8/31.
 */
public enum Level implements Enumerable {

    COMMON(1, "普通用户", "Level 1"),
    VIP(2, "高级会员", "Level 2"),
    VVIP(3, "VIP会员", "Level 3"),
    VVVIP(4, "至尊VIP会员", "Level 4");

    private int code;
    private String description;
    private String descriptionEn;

    Level(int code, String description, String descriptionEn) {
        this.code = code;
        this.description = description;
        this.descriptionEn = descriptionEn;
    }

    public int getCode() {
        return code;
    }

    public String getCodeString() {
        return name();
    }

    public String getDescription() {
        return description;
    }

    public String getDescriptionEn() {
        return this.descriptionEn;
    }
}
